import Vue from 'vue'
import Vuex from 'vuex'

import getters from './getters'
import user from './modules/user'
import dashboard from './modules/dashboard'
import department from './modules/department'
import position from './modules/position'
import salary from './modules/salary'
import attendance from './modules/attendance'
import project from './modules/project.js'
import suggestion from './modules/suggestion.js'
import activity from './modules/activity.js'

Vue.use(Vuex)

const store = new Vuex.Store({
	modules: {
		user,
		dashboard,
		department,
		position,
		salary,
		attendance,
		project,
		suggestion,
		activity
	},
	getters
})

export default store